package anti5mao;

import javax.servlet.http.HttpServlet;

import twitter4j.ResponseList;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.UserMentionEntity;
import twitter4j.auth.AccessToken;

public class FindAndBlock5MaoServlet extends HttpServlet {

	private void findAndBlock(AccessToken token) throws TwitterException{
		Twitter twitter = Anti5maoServlet.getClient();
		twitter.setOAuthAccessToken(token);
		ResponseList<Status> statuses = twitter.getMentions();
		int len = statuses.size();
		for(int i=0;i<len&&i<5;i++){
			Status status = statuses.get(i);
			UserMentionEntity[] entities = status.getUserMentionEntities();
			entities[0].
			
		}
		
	}
}
